package 哈希值;

public class hashcode_demo {
    public static void main(String[] args) {
        String a=new String("shabi");
        System.out.println(a.hashCode());//109399539
        System.out.println(a.hashCode());//109399539相同对象的哈希值是一样的是根据地址编译的int值
        System.out.println(a);
    }
}
